package com.zouxian.util;

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtils {
	public static String replaceBlank(String str) {
		String dest = "";
		if (str != null) {
			Pattern p = Pattern.compile("\\s*|\t|\r|\n");
			Matcher m = p.matcher(str);
			dest = m.replaceAll("");
		}
		return dest;
	}
	public static List<String> addURL(List<String> list,String resource){
		List<String> result=new ArrayList();
		for (String endURl : list) {
			result.add(resource+endURl);
		}
		return result;
	}
}
